<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>系数表</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			#if($shiro.hasPermission("dictcoefficient:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("dictcoefficient:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("dictcoefficient:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictCoefficient.code" placeholder="编号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">系数名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictCoefficient.name" placeholder="系数名称"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">计算公式</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictCoefficient.type" placeholder="计算公式" style="display:none;"/>
			    <input type="text" class="form-control" v-model="dictCoefficient.typeName" placeholder="计算公式" 
			    id="classicalname" readonly="readonly"    @click="getclist(dictCoefficient.type,dictCoefficient.typeName)"/>
			    </div>
			</div>
					<div class="form-group">
			   	<div class="col-sm-2 control-label">薪资类型</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictCoefficient.wagesTypeId" placeholder="薪资类型" style="display:none;"/>
			    <input type="text" class="form-control" v-model="dictCoefficient.wagesTypeName" placeholder="薪资类型" 
			    id="wagestypename" readonly="readonly"    @click="getplist(dictCoefficient.wagesTypeId,dictCoefficient.wagesTypeName)"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">排序</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictCoefficient.orderno" placeholder="排序"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">备注</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictCoefficient.memo" placeholder="备注"/>
			    </div>
			</div>
									<div class="form-group" style="display:none">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictCoefficient.createtime" placeholder="创建时间"/>
			    </div>
			</div>
									<div class="form-group" style="display:none">
			   	<div class="col-sm-2 control-label">创建人</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictCoefficient.createby" placeholder="创建人"/>
			    </div>
			</div>
									<div class="form-group" style="display:none">
			   	<div class="col-sm-2 control-label">修改时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictCoefficient.updatetime" placeholder="修改时间"/>
			    </div>
			</div>
									<div class="form-group" style="display:none">
			   	<div class="col-sm-2 control-label">修改人</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dictCoefficient.updateby" placeholder="修改人"/>
			    </div>
			</div>
			<div class="form-group">
						<div class="col-sm-2 control-label">系数规则</div>
			   	<div id="znyf" style="text-align: center;margin-left: 131px;">
					<table id="bodyGrid"></table>
					<div id="addbtn" style="width:100%">
						<button type="button" style="float:left" onclick="addRow()">增加行</button>		
					</div>
				</div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">状态</div>
			   	<label class="radio-inline">
				  <input type="radio" name="state" value="0" v-model="dictCoefficient.state"/> 禁用
				</label>
				<label class="radio-inline">
				  <input type="radio" name="state" value="1"   v-model="dictCoefficient.state"/> 正常
				</label>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
	
		<div id="clist"  style="display: none;">
<div class="grid-btn" style="padding-top: 10px;">
                <div class="form-group col-sm-4">
                <input type="text" class="form-control"  placeholder="名称">
            </div>
            <a class="btn btn-default" >查询</a>
        </div>
        <table id="cqgrid"></table>
        <div id="jqGridPager1" style='position:relative;'></div>
    </div>
    
    
    <div id="plist"  style="display: none;">
<div class="grid-btn" style="padding-top: 10px;">
                <div class="form-group col-sm-4">
                <input type="text" class="form-control"  placeholder="名称">
            </div>
            <a class="btn btn-default" >查询</a>
        </div>
        <table id="pqgrid"></table>
        <div id="jqGridPager2" style='position:relative;'></div>
    </div>
</div>

<script src="${rc.contextPath}/js/zjdc/dictcoefficient.js?_${date.systemTime}"></script>
</body>
</html>